namespace OFX.Aggregator.WebScraping.Infrastructure
{
	using System;

	[Serializable]
	public class AssumptionFailedException : Exception
	{
		private readonly IHtmlPageProcessor processor;

		public AssumptionFailedException(IHtmlPageProcessor processor, string message)
			: base(message) { this.processor = processor; }

		public AssumptionFailedException(IHtmlPageProcessor processor, string message, Exception innerException)
			: base(message, innerException) { this.processor = processor; }

		public IHtmlPageProcessor Processor
		{
			get { return this.processor; }
		}
	}
}